// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import axios from 'axios';
import {get,post,put,patch,prefixUrl} from './lib/http';//异步请求
import {gets,sets,remove,clear} from './lib/localData';//存入本地
import $ from "jquery";
import md5 from 'js-md5';
import {formatTime} from "./lib/formatTime"//转日期
Vue.prototype.formatTime=formatTime;
Vue.prototype.$md5 = md5;
Vue.prototype.$get = get;
Vue.prototype.$post = post;
Vue.prototype.$put = put;
Vue.prototype.$patch = patch;
Vue.prototype.prefixUrl = prefixUrl;
Vue.prototype.get = gets;
Vue.prototype.set = sets;
Vue.prototype.remove = remove;
Vue.prototype.clear = clear;
Vue.config.productionTip = false;
axios.defaults.withCredentials = true;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
